<script>
try {
	throw new EvalError('EvalError')
} catch(e) {
	if(e instanceof EvalError) {
		alert(e.name + " : " + e.message)
	} else if (e instanceof RangeError) {
		alert(e.name + " : " + e.message);
	} else if (e instanceof ReferenceError) {
		alert(e.name + " : " + e.message);
	} else if (e instanceof SyntaxError) {
		alert (e.name + " : " + e.message);
	} else if (e instanceof TypeError) {
		alert (e.name + " : " + e.message);
	} else if (e instanceof URIError) {
		alert (e.name + " : " + e.message);
	}
}

</script>